package com.zyh.zhukang.productdetails.service;

import com.zyh.zhukang.productdetails.dao.ProductDetailsDAO;
import com.zyh.zhukang.productdetails.entity.ProductInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 作者:zhuyunhao
 * 时间:2020/1/15 0015 11:00
 */
@Service
public class ProductService {
    @Resource
    private ProductDetailsDAO productDetailsDAO;

    //根据商品id查询商品详情
    public ProductInfo getProductInto(Integer productId){
        ProductInfo productInfo = productDetailsDAO.getProductInfo(productId);
        return productInfo;
    }
}
